package com.burstly.lib.service;

import android.content.Context;
import com.burstly.lib.util.Utils;
import java.util.List;

abstract class AbstractHostProvider
  implements IHostProvider
{
  private final IpDownloader mIpDownloader = new IpDownloader(paramContext, paramString1, paramString2, this);
  private List<String> mLevelOneServers = createLevelOneServers();

  protected AbstractHostProvider(Context paramContext, String paramString1, String paramString2)
  {
  }

  protected abstract List<String> createLevelOneServers();

  public List<String> getLevelOneHosts()
  {
    return Utils.shuffle(this.mLevelOneServers, getPrimaryHost());
  }

  public List<String> getLevelTwoHosts()
  {
    return Utils.shuffle(this.mIpDownloader.getIpList());
  }

  protected abstract String getPrimaryHost();
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.service.AbstractHostProvider
 * JD-Core Version:    0.6.2
 */